package com.tos.second.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Category implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    //ID
    private Long id;
    //名称
    private String name;
    //排序
    private Integer sort;
    //状态
    private Integer status;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateTime;
    //创建用户
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    //更新用户
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
    //图片
    private String image;
    //描述
    private String description;
}
